import request from '@/utils/request'

// 作品展示列表接口
export function ScriptWritingListByWhere(params) {
  return request({
    url: '/ScriptWriting/ScriptWritingListByWhere',
    method: 'get',
    params
  })
}

// 作品征集添加/编辑接口
export function WorksCallupEdit(data) {
    return request({
      url: '/WorksCallup/WorksCallupEdit',
      method: 'post',
      data
    })
  }

// 创作列表
export function ScriptWritingList(data) {
  return request({
    url: '/ScriptWriting/ScriptWritingList',
    method: 'post',
    data
  })
}

// 删除接口
export function ScriptWritingDel(data) {
  return request({
    url: '/ScriptWriting/ScriptWritingDel',
    method: 'post',
    data
  })
}

// 剧本创作接口
export function ScriptWritingEdit(data) {
  return request({
    url: '/ScriptWriting/ScriptWritingEdit',
    method: 'post',
    data
  })
}

// 创作类型列表接口
export function CreationTypeListByTypeId(params) {
  return request({
    url: '/CreationType/CreationTypeListByTypeId',
    method: 'get',
    params
  })
}

// 拍摄场景列表接口
export function SceneList(params) {
  return request({
    url: '/Scene/SceneList',
    method: 'get',
    params
  })
}


// 角色数量列表接口
export function RoleNumberList(params) {
  return request({
    url: '/RoleNumber/RoleNumberList',
    method: 'get',
    params
  })
}


// 作品数量统计接口
export function ScriptWritingCount(params) {
  return request({
    url: '/ScriptWriting/ScriptWritingCount',
    method: 'get',
    params
  })
}

// 剧本编辑接口
export function ScriptWritingDetail(params) {
  return request({
    url: '/ScriptWriting/ScriptWritingDetail',
    method: 'get',
    params
  })
}

//作品版权转让列表接口
export function ScriptWritingBQZRList(params) {
  return request({
    url: '/ScriptWriting/ScriptWritingBQZRList',
    method: 'get',
    params
  })
}

//投稿接口
export function SubmitWriting(data) {
  return request({
    url: '/WorksCallup/SubmitWriting',
    method: 'post',
    data
  })
}

//作品上架接口
export function ScriptWritingReview(data) {
  return request({
    url: '/ScriptWriting/ScriptWritingReview',
    method: 'post',
    data
  })
}

// 首页作品展示列表接口
export function IndexScriptWritingListByWhere(params) {
  return request({
    url: '/Index/ScriptWritingListByWhere',
    method: 'get',
    params
  })
}

// 首页详细列表接口
export function IndexCreationTypeListByTypeId(params) {
  return request({
    url: '/Index/CreationTypeListByTypeId',
    method: 'get',
    params
  })
}

// 首页剧本编辑接口
export function IndexScriptWritingDetail(params) {
  return request({
    url: '/Index/ScriptWritingDetail',
    method: 'get',
    params
  })
}

// 热门交易列表接口
export function HotScriptWrting(params) {
  return request({
    url: '/Index/HotScriptWrting',
    method: 'get',
    params
  })
}



